-- GENERATED SPELL FOR [Arvoar the Rapacious] --


function spell0_23267(pUnit, Event) --@Bellowing Roar,Self--
pUnit:FullCastSpellOnTarget(40636,pUnit)
pUnit:RegisterEvent('Sorts_23267', 5500, 1)
end

function spell1_23267(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23267', 15000, 1)
end

function spell2_23267(pUnit, Event) --@Rock Shell,n/a--
pUnit:FullCastSpellOnTarget(33810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23267', 6266, 1)
end

function Sorts_23267(pUnit, Event)
local choix_sorts_23267 = math.random(0, 2)
if choix_sorts_23267 == 0 then
pUnit:RegisterEvent('spell0_23267', 1, 1)
end
if choix_sorts_23267 == 1 then
pUnit:RegisterEvent('spell1_23267', 1, 1)
end
if choix_sorts_23267 == 2 then
pUnit:RegisterEvent('spell2_23267', 1, 1)
end
end

function mob23267_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23267', math.random(1500, 3000), 1)
end

function mob23267_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23267_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23267_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23267, 1, 'mob23267_Action')
RegisterUnitEvent(23267, 2, 'mob23267_Leave')
RegisterUnitEvent(23267, 3, 'mob23267_Kill')
RegisterUnitEvent(23267, 4, 'mob23267_Die')
